//
//  SMHDataViewController.swift
//  SMHCommerce
//
//  Created by lvzhao on 2020/1/6.
//  Copyright © 2020 lvzhao. All rights reserved.
//

import UIKit

class SMHDataViewController: LZBaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        self.navigationItem.title = "数据部"
        setupUI()
    // Do any additional setup after loading the view.
    }


    // MARK: - setupUI
    func setupUI()  {

        self.view.addSubview(self.dataView)
        self.dataView.snp.makeConstraints { (make) in
            make.top.equalTo(0)
            make.left.right.bottom.equalTo(0)
        }
    }

    // MARK: - ViewModel
    private lazy var dataView : SMHDataView = {
        let dataView = SMHDataView.init(viewModel: self.viewModel)
        return dataView
    }()
    
    // MARK: - ViewModel
    private lazy var viewModel : SMHDataViewModel  = {
        let viewModel = SMHDataViewModel()
        return viewModel
    }()

    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destination.
        // Pass the selected object to the new view controller.
    }
    */

}
